import { createRouter, createWebHistory } from 'vue-router'
import denglu from '@/views/denglu/denglu.vue'
import zhuce from '@/views/zhuce/zhuce.vue'
import dingdan from '@/views/dingdan/dingdan.vue'
import sousuo from '@/views/sousuo/sousuo.vue'

import demo from '@/views/home/demo.vue'
import demo1 from '@/views/home/demo1.vue'
import demo2 from '@/views/home/demo2.vue'
import demo3 from '@/views/home/demo3.vue'
import demo4 from '@/views/home/demo4.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/zhuce',component: zhuce,},
    { path: '/denglu',component: denglu,},
    { path: '/dingdan',component: dingdan,},
    { path: '/sousuo',component: sousuo,},
    {
      path: '/demo',
      component: demo,
      children:[
        { path: '/demo1',component: demo1,},
        { path: '/demo2',component: demo2,},
        { path: '/demo3',component: demo3,},
        { path: '/demo4',component: demo4,},
      ]
    },
  ],
})

export default router
